package com.loooooo.pm2024.modules.pm.mapper;


import com.loooooo.pm2024.modules.pm.bo.IssueSummaryResult;
import com.loooooo.pm2024.modules.pm.model.Issue;
import com.loooooo.pm2024.modules.pm.selector.IssueSelector;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface IssueMapper {


    Issue get(Long id);


    List<Issue> select(IssueSelector selector);

    int count(IssueSelector selector);

    int insert(Issue issue);

    int update(Issue issue);

    double workload(@Param("date") Long date, @Param("ownerId") Long ownerId);


    List<IssueSummaryResult> summary(IssueSelector selector);

    int updateChildren();


}
